Make sure regex doesn't stack overflow by limiting it
authorAlbert Astals Cid <aacid@kde.org>
Wed, 26 Mar 2025 10:26:32 +0000 (11:26 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Sat, 6 Jun 2026 09:07:43 +0000 (11:07 +0200)
commit760e57ea9cb9c35cdd08957bd63da2b6dcb42b6d
tree6165cf7658a8bb22f57449b52ede8b73f0a56c74
parentd356b46f4ead8350e39fa773db46874a9cd52eb2
Make sure regex doesn't stack overflow by limiting it

Origin: https://gitlab.freedesktop.org/poppler/poppler/-/commit/f54b815672117c250420787c8c006de98e8c7408
Bug-Debian: https://bugs.debian.org/1117046
Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2025-43718

Happens with very long pdfsubver strings when compiled with
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto

Gbp-Pq: Name Make-sure-regex-doesn-t-stack-overflow-by-limiting-i.patch
poppler/PDFDoc.cc